package cn.wolfcode.mapper;

import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityItem record);

    ActivityItem selectByPrimaryKey(Long id);

    List<ActivityItem> selectAll();

    int updateByPrimaryKey(ActivityItem record);

    List<ActivityItem> selectForList(QueryObject qo);

    //根据活动id查活动明细
    List<ActivityItem> selectByActivityId(Long id);

    void updateResult(Long id);

    void recordResult(@Param("employeeId") Long employeeId, @Param("activityItemId") Long activityItemId, @Param("createTime") Date createTime);

    int selectTotalNum(Long id);
}